package com.example.backend.mapper;

import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Component;
import java.util.List;

@Mapper
@Component
public interface ResponseMapper {
    //增加评论
    @Insert("insert into responses(responseId,postId,userId,content) values(#{responseId},#{postId},#{userId},#{content})")
    int addResponses(@Param("responseId") int id, @Param("postId") int id2, @Param("userId") int id3, @Param("content") String content);

    //删除评论
    @Delete("delete  from responses where responseId = #{id}")
    int deleteResponses(@Param("id") int id);
}
